﻿using EmitDebugging;
using Microsoft.VisualStudio.TestTools.UnitTesting;
using Spackle.Testing;
using System;
using System.Reflection;

namespace EmitDebugging.Tests
{
	[TestClass]
	public sealed class FieldInfoDescriptorTests : CoreTests
	{
#pragma warning disable 169
		private Guid someField;
#pragma warning restore 169

		[TestMethod]
		public void GetDescription()
		{
			Assert.AreEqual("System.Guid EmitDebugging.Tests.FieldInfoDescriptorTests::someField",
				new FieldInfoDescriptor(this.GetType().GetField(
					"someField", BindingFlags.NonPublic | BindingFlags.Instance)).Value);
		}
	}
}
